package com.lemon.core.base.pojo.tree;

import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.List;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 下拉选择VO
 *
 * @author pan
 * @since 2019-12-06
 */
@Data
@NoArgsConstructor
public class SelectVO {

    private Long value;

    private String label;

    @JsonInclude(value = JsonInclude.Include.NON_NULL)
    private List<SelectVO> children;

    public SelectVO(Long value, String label) {
        this.value = value;
        this.label = label;
    }

}
